<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>页面不存在</title>
    <link rel="icon" th:href="@{/static/console/common/images/favicon.ico}">
    <link th:href="@{/static/console/assets/css/bootstrap.min.css}" rel="stylesheet" />
    <script th:src="@{/static/js/jquery-1.11.3.min.js}" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
        .pc-body{background: url(/static/img/404.png) no-repeat;height: 100%;width: 100%;text-align: center;overflow: hidden}
        .phone-body{background: url(/static/img/phone_404.png) no-repeat;height: 100%;width: 100%;text-align: center;overflow: hidden;background-size: 100%;}
        div{margin:  430px auto;}
        p{font-size: 22px;margin-bottom: 20px;font-weight: 700;color: #4a92d0;}
        a {width: 200px;font-size: 22px;}
    </style>
    <script type="text/javascript">

        $(function () {
            if (isOS()) {
                $('body').removeClass('pc-body');
                $('body').addClass('phone-body');
                /**h5页面**/
                $('.btn-primary').attr('href', '/cloud/index');
            } else {
                $('body').addClass('pc-body');
                $('body').removeClass('phone-body');
                /**pc页面**/
                $('.btn-primary').attr('href', '/console/index');
            }
        });

        function isOS(){
            var os = new Array("Android","iPhone","Windows Phone","iPod","BlackBerry","MeeGo","SymbianOS");  // 其他类型的移动操作系统类型，自行添加
            var info = navigator.userAgent;
            var len = os.length;
            for (var i = 0; i < len; i++) {
                if (info.indexOf(os[i]) > 0){
                    return true;
                }
            }
            return false;
        }
    </script>
</head>
<body class="pc-body">
<div>
    <p>您访问的页面不存在！</p>
    <a href="/console/index" class="btn btn-primary">返回首页</a>
</div>

</body>
</html>
